/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package modulos.usuario.modelo;

/**
 *
 * @author francisco
 */
public class SerialMAC_AES {

    public static String generarSerial() {        
        String macadd = Enlace.getMac();
        AlgoritmoAES aes = new AlgoritmoAES(macadd.substring(0, 16).getBytes());
        String enc = aes.encriptar(macadd);
        String ser = enc.substring(0, 20).toUpperCase();
        return ser;
    }
    public static void main(String args[]){
        System.out.println(SerialMAC_AES.generarSerial());;
    }

}
